<?php  //echo '<pre>'; print_r($_POST);exit;
ini_set('display_errors',0);
$ismailed=0;
if($_POST)
{
	//echo '<pre>'; print_r($_POST);
	$name = $_POST['name'];
	$email = $_POST['email'];
	$tel = $_POST['tel'];
	$requirement = $_POST['requirement'];
	  $headers  = 'From: ' .$email. "\r\n" .
                'MIME-Version: 1.0' . "\r\n" .
                'Content-type: text/html; charset=iso-8859-1' . "\r\n" .
                'X-Mailer: PHP/' . phpversion();
      $subject="Contactus Form Sredd Pharmacy ";
      $message ="<table border-collapse='collapse'; cellpadding='20' width='50%'>
        <tr><td style='text-align:right;border:1px solid #eee'>Name:&nbsp;</td><td style='border:1px solid #eee'>$name</td></tr>
        <tr><td style='text-align:right;border:1px solid #eee'>Email:&nbsp;</td><td style='border:1px solid #eee'>$email</td></tr>
        <tr><td style='text-align:right;border:1px solid #eee'>Mobile Number:&nbsp;</td><td style='border:1px solid #eee'>$tel</td></tr>
        <tr><td style='text-align:right;border:1px solid #eee'>Message:&nbsp;</td><td style='border:1px solid #eee'>$requirement</td></tr>
      </table>";
	 // echo $message;
      $to = 'sreedevidurgaenterprises@gmail.com';
      $ismailed=mail($to,$subject,$message, $headers);
	  //echo $ismailed;exit;
	}
?>
<?php include('header.php');?>
 <div class="container">
	<div class="container_bg">
	<div class="message_absolute">
				<?php 
					if( $ismailed!=0){?>
					<script> 
						window.location = 'contact-us.php?success=true';
					</script>
					<?php }if($_GET['success']){
					echo "<p class='message_style' id='successMessage'><img src='images/ok.gif'/><b>&nbsp;Thank you for contacting us, We will get back to you soon.</b></p> ";
					}
				?>
				</div>
		<div class="container_pad">
			<div class="title">
				<div class="row">
					<div class="span25">
						<h3>Contact Us !</h3>
						<div class="contact">
							<h5>E-MAIL</h5>
							<P>​info@sreeddpharmacy.com</p>
						</div>
						<div class="contact_tel">
							<h5>TELEPHONE</h5>
							<p>+91 9030400600</p>
						</div>
						<div class="clearfix"></div>
						<div class="contact">
							<h5>ADDRESS</h5>
							<p>Door No # B1-13(11-13), <br/>Huda colony Chandanagar,<br/>
									Hyderabad - 500050 India.<br/>
								<b>Land Mark:</b> Chandanagar railway station road									
							</p>
						</div>
						<!--<div class="contact">
							<h5>FAX</h5>
							<p>00 84 61 624 78 54</p>
						</div>-->
						<div class="clearfix"></div>
						<div class="">
						<h3>Careers</h3>
						Currently we are looking for following positions:<br/>
						1. Pharmacist<br/> 
						2. Business Development Executive<br/>
						3. Homecare Nurse<br/>
						4. Lab Technician/ Lab Administrator<br/>
						5. Delivery and Marketing<br/>
						<a href="career.php" class="">Click here &raquo;</a>
						</div>
					</div>
					<div class="span25 wel_left_side" style="background:#f2f2f2; min-height:100px;">
						<div class="" style="padding-left:30px;">
							<h4>Contact Form</h4>
							<form class="form-horizontal" method="post">
								<div class="control-group">
								<label class="control-label contact_inputs" for="inputEmail">Name</label>
								<div class="controls">
								<input type="text" id="name" name="name" class="contct_input_left" placeholder="Please Enter Your Name" required>
								</div>
								</div>
								<div class="control-group">
								<label class="control-label contact_inputs" for="inputPassword">E-Mail</label>
								<div class="controls">
								<input type="email" id="email" name="email" class="contct_input_left" placeholder="Please Enter Your E-mail" required>
								</div>
								</div>
								<div class="control-group">
								<label class="control-label contact_inputs" for="inputPassword">Telephone</label>
								<div class="controls">
								<input type="text" id="tel" name="tel" class="contct_input_left" placeholder="Please Enter Your Telephone" required>
								</div>
								</div>
								<div class="control-group">
								<label class="control-label contact_inputs" for="inputPassword">Message</label>
								<div class="controls">
								<textarea style="height:150px;" id="requirement" name="requirement" class="contct_input_left" placeholder="Please Enter Your Message"required></textarea>
								</div>
								</div>
								<div class="control-group">
								<div class="controls">
								<button class="contact_btn" type="submit">Send Message</button>
								</div>
								</div>
							</form>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
</div>
	<?php include('footer.php');?>
	<script>
	$('#successMessage').delay(6000).fadeOut('slow'); 
</script>
  </body>
</html>


